<?php
	class MailAction extends CommonAction{
		
		//发信
		public function mailto(){
			$mail = new MailModel($this->_post('mailto'),$_SESSION[C('USER_AUTH_KEY')]['UserId']);
			$mail->title = htmlspecialchars($this->_post('Title'));
			$mail->content = htmlspecialchars($this->_post('Content'));
			$res=$mail->sendmail();
			if($res){
				echo "<script>window.parent.uploadCallBack(true);</script>";
			}
		}
	} 
?>